<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>产品余额</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-23953766">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-23953766";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("product.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>

<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#productForm").form({
		"":function(){}
		,"product.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"product.name":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "名称不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "名称最大长度为32个字符";
		}
		,"product.uid":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "用户编号不能为空";
			}
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "用户编号最大长度为32个字符";
		}
		,"product.commodity":function(el){
		}
		,"product.number":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"product.attribute":function(el){
			if(el.value.length>128 && el.value.indexOf("[*]")==-1)
				return "规格属性最大长度为128个字符";
		}
		,"product.pTermValidity":function(el){
		}
		,"product.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"product.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "添加时间不能为空";
			}
		}
		,"product.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
		,"product.merchant":function(el){
		}
		,"product.member":function(el){
		}
		,"product.pPrice":function(el){
				var pattern = /^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;
				if(el.value!="" && !pattern.test(el.value))
					return "价格输入格式错误";
		}
		,"product.pUnit":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "单位最大长度为32个字符";
		}
		,"product.img":function(el){
			if(el.value.length>512 && el.value.indexOf("[*]")==-1)
				return "商品图最大长度为512个字符";
		}
		,"product.pLimit":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"product.count":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"product.descr":function(el){
			if(el.value.length>256 && el.value.indexOf("[*]")==-1)
				return "来源描述最大长度为256个字符";
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>
 
<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>





<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="Product" id="productForm" name="productForm" target="jsoniframe" action="product.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写产品余额相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
					
				
				
	{{lz.set("id_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{product$id}}">
				{{product$id}}
			</lz:block>
			<lz:block lz:if="{{!product$id}}">
			<input type="hidden" value="{{lz.htm(product.id)}}" name="product.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{product.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.id$||product.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
					
				
				
	{{lz.set("name_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"name"))))}}
	{{lz.set("name_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$name}}
	<dl lz:if="{{name_editable||name_readonly}}" class="name  " major  ref="name">
		<dt>名　　称:</dt>
		<dd lz:if="{{name_editable}}" input="text">
			<lz:block lz:if="{{product$name}}">
				{{product$name}}
			</lz:block>
			<lz:block lz:if="{{!product$name}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="product.name" id="name"  value="{{lz.htm(product.name)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入产品余额的名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{name_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="name">{{product.name}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.name$||product.name)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$name}}
					
				
				
	{{lz.set("uid_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"uid"))))}}
	{{lz.set("uid_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$uid}}
	<dl lz:if="{{uid_editable||uid_readonly}}" class="uid  " major  ref="uid">
		<dt>用户编号:</dt>
		<dd lz:if="{{uid_editable}}" input="text">
			<lz:block lz:if="{{product$uid}}">
				{{product$uid}}
			</lz:block>
			<lz:block lz:if="{{!product$uid}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="product.uid" id="uid"  value="{{lz.htm(product.uid)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入产品余额的用户编号</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{uid_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="uid">{{product.uid}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.uid$||product.uid)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$uid}}
					
				
				
	{{lz.set("nickName_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"nickName"))))}}
	{{lz.set("nickName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
				
	
	{{before$nickName}}
	<dl lz:if="{{nickName_editable||nickName_readonly}}" class="nickName  " major  ref="nickName">
		<dt>会员名称:</dt>
		<dd lz:if="{{nickName_editable}}" input="text">
			<lz:block lz:if="{{product$nickName}}">
				{{product$nickName}}
			</lz:block>
			<lz:block lz:if="{{!product$nickName}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="product.nickName" id="nickName"  value="{{lz.htm(product.nickName)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入产品余额的会员名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{nickName_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="nickName">{{product.nickName}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.nickName$||product.nickName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$nickName}}
					
				
				
	{{lz.set("commodity_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"commodity"))))}}
	{{lz.set("commodity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$commodity}}
	<dl lz:if="{{commodity_editable||commodity_readonly}}" class="ribs commodity  " major  ref="commodity">
		<dt>商品信息:</dt>
		<dd lz:if="{{commodity_editable}}" input="query">
			<lz:block lz:if="{{product$commodity}}">
				{{product$commodity}}
			</lz:block>
			<lz:block lz:if="{{!product$commodity}}">
		 			<input title="请输入商品信息商品名称进行查询" class="combox narrow" action="/manage/query.Commodity.do?value={param}" type="text" id="commodity" name="product.commodity" text="{{lz.html(product.commodity$||product.commodity)}}" value="{{lz.htm(product.commodity)}}" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{commodity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="commodity">{{product.commodity}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.commodity$||product.commodity)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$commodity}}
					
				
				
	{{lz.set("number_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"number"))))}}
	{{lz.set("number_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$number}}
	<dl lz:if="{{number_editable||number_readonly}}" class="ribs number  " major  ref="number">
		<dt>数　　量:</dt>
		<dd lz:if="{{number_editable}}" input="number">
			<lz:block lz:if="{{product$number}}">
				{{product$number}}
			</lz:block>
			<lz:block lz:if="{{!product$number}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="product.number" id="number"  value="{{lz.htm(product.number)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入产品余额的数量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{number_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="number">{{product.number}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.number$||product.number)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$number}}
					
				
				
	{{lz.set("attribute_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"attribute"))))}}
	{{lz.set("attribute_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$attribute}}
	<dl lz:if="{{attribute_editable||attribute_readonly}}" class="ribs attribute   wider" major  ref="attribute">
		<dt>规格属性:</dt>
		<dd lz:if="{{attribute_editable}}" input="textarea">
			<lz:block lz:if="{{product$attribute}}">
				{{product$attribute}}
			</lz:block>
			<lz:block lz:if="{{!product$attribute}}">
		 	<textarea class="input wide"  id="attribute" name="product.attribute" rows="5">{{product.attribute}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入产品余额的规格属性</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{attribute_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(product.attribute$||product.attribute)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$attribute}}
					
				
				
	{{lz.set("pTermValidity_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"pTermValidity"))))}}
	{{lz.set("pTermValidity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$pTermValidity}}
	<dl lz:if="{{pTermValidity_editable||pTermValidity_readonly}}" class="ribs pTermValidity  " major  ref="pTermValidity">
		<dt>有 效 期:</dt>
		<dd lz:if="{{pTermValidity_editable}}" input="date">
			<lz:block lz:if="{{product$pTermValidity}}">
				{{product$pTermValidity}}
			</lz:block>
			<lz:block lz:if="{{!product$pTermValidity}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="product.pTermValidity" id="pTermValidity"  value="{{product.pTermValidity$}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请选择产品余额的有效期</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{pTermValidity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="pTermValidity">{{product.pTermValidity}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.pTermValidity$||product.pTermValidity)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$pTermValidity}}
					
				
				
	{{lz.set("updateTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="date">
			<lz:block lz:if="{{product$updateTime}}">
				{{product$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!product$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="product.updateTime" id="updateTime"  value="{{product.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择产品余额的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{product.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.updateTime$||product.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
					
				
				
	{{lz.set("addTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>添加时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="date">
			<lz:block lz:if="{{product$addTime}}">
				{{product$addTime}}
			</lz:block>
			<lz:block lz:if="{{!product$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd'})" type="text" class="date input narrow" maxlength="19" name="product.addTime" id="addTime"  value="{{product.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择产品余额的添加时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{product.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.addTime$||product.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
					
				
				
	{{lz.set("status_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{product$status}}">
				{{product$status}}
			</lz:block>
			<lz:block lz:if="{{!product$status}}">
		 	<select class="narrow" id="status" name="product.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{product.status=="1"?"selected":""}}'>正常</option>
				<option value="0" selected='{{product.status=="0"?"selected":""}}'>无效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择产品余额的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{product.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.status$||product.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
					
				
						
				
				
	{{lz.set("member_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"member"))))}}
	{{lz.set("member_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$member}}
	<dl lz:if="{{member_editable||member_readonly}}" class="ribs member  " minor  ref="member">
		<dt>所属会员:</dt>
		<dd lz:if="{{member_editable}}" input="query">
			<lz:block lz:if="{{product$member}}">
				{{product$member}}
			</lz:block>
			<lz:block lz:if="{{!product$member}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/manage/query.Member.do?value={param}" type="text" id="member" name="product.member" text="{{lz.html(product.member$||product.member)}}" value="{{lz.htm(product.member)}}" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{member_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="member">{{product.member}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.member$||product.member)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$member}}
					
				
				
	{{lz.set("pPrice_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"pPrice"))))}}
	{{lz.set("pPrice_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$pPrice}}
	<dl lz:if="{{pPrice_editable||pPrice_readonly}}" class="ribs pPrice  " major  ref="pPrice">
		<dt>价　　格:</dt>
		<dd lz:if="{{pPrice_editable}}" input="menoy">
			<lz:block lz:if="{{product$pPrice}}">
				{{product$pPrice}}
			</lz:block>
			<lz:block lz:if="{{!product$pPrice}}">
		 	<input onchange="onkeyup()" onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?(\.)?(\d+)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="product.pPrice" id="pPrice"  value="{{lz.htm(product.pPrice)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入产品余额的价格</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{pPrice_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="pPrice">{{product.pPrice}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.pPrice$||product.pPrice)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$pPrice}}
					
				
				
	{{lz.set("pUnit_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"pUnit"))))}}
	{{lz.set("pUnit_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$pUnit}}
	<dl lz:if="{{pUnit_editable||pUnit_readonly}}" class="ribs pUnit  " major  ref="pUnit">
		<dt>单　　位:</dt>
		<dd lz:if="{{pUnit_editable}}" input="text">
			<lz:block lz:if="{{product$pUnit}}">
				{{product$pUnit}}
			</lz:block>
			<lz:block lz:if="{{!product$pUnit}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="product.pUnit" id="pUnit"  value="{{lz.htm(product.pUnit)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入产品余额的单位</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{pUnit_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="pUnit">{{product.pUnit}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.pUnit$||product.pUnit)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$pUnit}}
					
				
				
	{{lz.set("img_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"img"))))}}
	{{lz.set("img_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$img}}
	<dl lz:if="{{img_editable||img_readonly}}" class="ribs img   mider" minor  ref="img">
		<dt>商 品 图:</dt>
		<dd lz:if="{{img_editable}}" input="text">
			<lz:block lz:if="{{product$img}}">
				{{product$img}}
			</lz:block>
			<lz:block lz:if="{{!product$img}}">
		 	<input type="text" class="input mide"  maxlength="512" name="product.img" id="img"  value="{{lz.htm(product.img)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入产品余额的商品图</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{img_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="img">{{product.img}}</textarea>
		 		<span>
		 	
			 {{lz.html(product.img$||product.img)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$img}}
					
				
				
	{{lz.set("descr_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"descr"))))}}
	{{lz.set("descr_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
				
	
	{{before$descr}}
	<dl lz:if="{{descr_editable||descr_readonly}}" class="ribs descr   wider" minor  ref="descr">
		<dt>来源描述:</dt>
		<dd lz:if="{{descr_editable}}" input="textarea">
			<lz:block lz:if="{{product$descr}}">
				{{product$descr}}
			</lz:block>
			<lz:block lz:if="{{!product$descr}}">
		 	<textarea class="input wide"  id="descr" name="product.descr" rows="5">{{product.descr}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入产品余额的来源描述</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{descr_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(product.descr$||product.descr)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$descr}}
			
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{product.id}}" name="product.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				
				
				
				
				
				
				<button lz:if="{{canEdit}}" type="button" class="button" onclick='window.location.href="/admin/products/product.edit.html?edittype=update&id={{product.id}}"'>
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					修改&nbsp;&nbsp;</button>
				
				
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>





 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>